package com.zrf.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Person entity. @author MyEclipse Persistence Tools
 */

public class Person implements java.io.Serializable {

	// Fields

	private Integer pid;
	private String pname;
	private String ppassword;
	private Integer pgrade;
	private Set flows = new HashSet(0);
	private Set leaves = new HashSet(0);

	// Constructors

	/** default constructor */
	public Person() {
	}

	/** full constructor */
	public Person(String pname, String ppassword, Integer pgrade, Set flows,
			Set leaves) {
		this.pname = pname;
		this.ppassword = ppassword;
		this.pgrade = pgrade;
		this.flows = flows;
		this.leaves = leaves;
	}

	// Property accessors

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPname() {
		return this.pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getPpassword() {
		return this.ppassword;
	}

	public void setPpassword(String ppassword) {
		this.ppassword = ppassword;
	}

	public Integer getPgrade() {
		return this.pgrade;
	}

	public void setPgrade(Integer pgrade) {
		this.pgrade = pgrade;
	}

	public Set getFlows() {
		return this.flows;
	}

	public void setFlows(Set flows) {
		this.flows = flows;
	}

	public Set getLeaves() {
		return this.leaves;
	}

	public void setLeaves(Set leaves) {
		this.leaves = leaves;
	}

}